﻿<%@ Page Language="C#" MasterPageFile="~/Template/Edit.master" AutoEventWireup="true"
    CodeFile="EditMonthly.aspx.cs" Inherits="Page_EditMonthly" Title="Untitled Page" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript" src="../Js/calendar.js"></script>
    <script type="text/javascript">
        function refreshParent() {
            try {
                window.opener.document.getElementById('ctl00$ListToolBarPlaceHolder$btnRefresh').click();
            }
            catch (e) {
            }
        }

    </script>
    <style type="text/css">
        .btn {
            border-right: #2C59AA 1px solid;
            padding-right: 2px;
            border-top: #2C59AA 1px solid;
            padding-left: 2px;
            font-size: 12px;
            filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
            border-left: #2C59AA 1px solid;
            cursor: pointer;
            color: black;
            padding-top: 2px;
            border-bottom: #2C59AA 1px solid;
        }
    </style>
    <link href="../Style/Css/calendar.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ToolBarContentPlaceHolder" runat="Server">
    <table border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnSave" OnClick="lbtnSave_Click">
                    <span><img src="../Images/Icon/Action/save.gif" /></span><span>保存</span></asp:LinkButton>
                </div>
            </td>
            <td class="Fg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="window.close();">
                    <span>
                        <img src="../Images/Icon/Action/delete.gif" alt="关闭" /></span><span>关闭</span>
                </div>
            </td>
            <td></td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FieldContentPlaceHolder" runat="Server">
    <table id="commandTable" border="0" cellspacing="0" cellpadding="0" class="FormTable tablefix"
        width="100%">
        <tr>
            <td class="FieldName">
                <span>&nbsp;部门：</span>
            </td>
            <td class="FieldInput" colspan="4">
                <asp:DropDownList runat="server" ID="ddlDept">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="FieldName">
                <span>&nbsp;文号：</span>
            </td>
            <td class="FieldInput" colspan="4">
                <asp:TextBox ID="tbSymbol" Width="180px" runat="server" CssClass="InputSmall"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbSymbol"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="FieldName">
                <span>&nbsp;文件名称：</span>
            </td>
            <td class="FieldInput" colspan="4">
                <asp:TextBox ID="tbFileName" Width="180px" runat="server" CssClass="InputSmall"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbFileName"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="FieldName" style="height: 50px">
                <span>&nbsp;主题词：</span>
            </td>
            <td class="FieldInput" colspan="4">
                <asp:TextBox ID="tbKeywords" runat="server" CssClass="TextArea01" Style="width: 90%; background-color: White; overflow: hidden"
                    TextMode="MultiLine" Rows="3"></asp:TextBox>
                <span>&nbsp;</span>
            </td>
        </tr>
        <tr>
            <td class="FieldName">
                <span>&nbsp;发布时间：</span>
            </td>
            <td class="FieldInput" colspan="4">
                <asp:TextBox ID="tbPublishTime" runat="server" onfocus="calendar();" CssClass="InputSmall"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbPublishTime"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr style="display: none">
            <td class="FieldName">
                <span>&nbsp;科室周报类型：</span>
            </td>
            <td class="FieldInput" colspan="4">
                <asp:DropDownList runat="server" ID="ddlType">
                </asp:DropDownList>
            </td>
        </tr>

        <tr>
            <td class="FieldName" colspan="5">
                <span>正文：</span>
            </td>
        </tr>
        <tr height="250">
            <td class="FieldInput" colspan="5" valign="top">
                <FCKeditorV2:FCKeditor ID="Content" SkinPath="../editor/skins/office2003/" Height="240"
                    BasePath="../fckeditor/" runat="server">
                </FCKeditorV2:FCKeditor>
            </td>
        </tr>
        <tr>
            <td class="FieldInput" colspan="5">
                附件：
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="DescriptionContentPlaceHolder" runat="Server">
    <asp:FileUpload runat="server" ID="upFile" />&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button CssClass="Button01"
        runat="server" ID="btnUpLoad" Text="上传" OnClick="btnUpLoad_Click" CausesValidation="false" />
    <div style="overflow: scroll; height: 100px; overflow-x: hidden;">
        <asp:Repeater ID="rptAttachList" runat="server" OnItemCommand="rptAttachList_ItemCommand">
            <HeaderTemplate>
                <table width="99%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
                    <tr align="left">
                        <td width="30px">
                            <span style="display: none">
                                <img src="../Images/Icon/Action/delete.gif" alt="删除" /></span><span style="display: none">删除</span>
                        </td>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;附件名称
                        </td>
                        <td>上传时间
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: pointer" class="Normal" oldclass="Normal"
                    onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <td align="center">&nbsp;<asp:LinkButton ID="lbtnDelete" runat="server" CommandName="Delete" CausesValidation="false"><span><img src="../Images/Icon/Action/delete.gif" alt="删除" /></span></asp:LinkButton>
                    </td>
                    <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;<%#Eval("DisplayName")%>
                    </td>
                    <td align="left">
                        <span title='<%# Eval("UploadTime","{0:yyyy-MM-dd HH:mm:ss}")%>'>&nbsp;<%# Eval("UploadTime","{0:yyyy-MM-dd HH:mm:ss}")%></span>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>

</asp:Content>
